package com.qiangesoft.cloud.seata.feign;

import com.qiangesoft.cloud.seata.model.Order;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "seata-stock-service", path = "/stock")
public interface StockFeignClient {

    @PostMapping("/decNum")
    int decNum(@RequestBody Order order);
}
